package gs.es.plugin.safe;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Eviltuzki on 2017/1/20.
 */
public class DataStore {
    //白名单
    private static final List<String> whiteList;
    //插件是否开启
    private static boolean isOpen=false;
    //From参数的最大值
    private static int from;
    //Size参数的最大值
    private static int size;
    //是否只有白名单允许删除
    private static boolean delete;
    //是否只有白名单允许访问
    private static boolean access;

    static {
        whiteList = new ArrayList<>();
}

    public static void setIsOpen(boolean open) {
        DataStore.isOpen = open;
    }

    public static List<String> getWhiteList() {
        return whiteList;
    }

    public static boolean isOpen() {
        return isOpen;
    }


    public static int getSize() {
        return size;
    }

    public static void setSize(int size) {
        DataStore.size = size;
    }

    public static int getFrom() {
        return from;
    }

    public static void setFrom(int from) {
        DataStore.from = from;
    }

    public static boolean isDelete() {
        return delete;
    }

    public static void setDelete(boolean delete) {
        DataStore.delete = delete;
    }

    public static boolean isAccess() {
        return access;
    }

    public static void setAccess(boolean access) {
        DataStore.access = access;
    }
}
